<%@ page import="com.mastercard.labs.Redemption" %>



<div class="fieldcontain ${hasErrors(bean: redemptionInstance, field: 'quantity', 'error')} required">
	<label for="quantity">
		<g:message code="redemption.quantity.label" default="Quantity" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="quantity" required="" value="${fieldValue(bean: redemptionInstance, field: 'quantity')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: redemptionInstance, field: 'user', 'error')} required">
	<label for="user">
		<g:message code="redemption.user.label" default="User" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="user" name="user.id" from="${com.mastercard.labs.User.list()}" optionKey="id" required="" value="${redemptionInstance?.user?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: redemptionInstance, field: 'voucher', 'error')} required">
	<label for="voucher">
		<g:message code="redemption.voucher.label" default="Voucher" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="voucher" name="voucher.id" from="${com.mastercard.labs.Voucher.list()}" optionKey="id" required="" value="${redemptionInstance?.voucher?.id}" class="many-to-one"/>
</div>

